import React, { Fragment } from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import 'antd-mobile/dist/antd-mobile.css';
import registerServiceWorker from './registerServiceWorker';
import store from './store/store'
import './config'
import { BrowserRouter, Route} from 'react-router-dom'
import Login from './container/login/Login';
import Register from './container/register/Register';
import Authentication from './components/authentication/Authentication'

ReactDOM.render(
    <Provider store={store}>
        <BrowserRouter>
            <Fragment>
                <Authentication></Authentication>
                <Route path={'/login'} component={Login}></Route>
                <Route path={'/register'} component={Register}></Route>
            </Fragment>
        </BrowserRouter>
    </Provider>,
    document.getElementById('root')
);
registerServiceWorker();
